<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var stus = [];
			var index = prompt("1.登录2.退出");
			switch (index) {
				case "1":
					do {
						var name = prompt("请输入用户名");
						var password = prompt("请输入密码");
						if (name == 'zhangsan' && password == '123') {
							break;
						}
					} while (true);
					var choice = prompt("1.添加2.删除3.遍历4.修改5.退出");
					switch (choice) {
						case "1":
							//添加
							var stuId = prompt("请输入学号");
							var stuName = prompt("请输入姓名");
							break;
						case "2":
							//删除
							break;
						case "3":
							//查询
							break;
						case "4":
							//修改
							break;
						case "5":
							//退出
							break;
					}
					break;
				default:
					break;
			}
		</script>
	</body>
</html>
